import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageHandler from "@runtime/module/Handler/MessageHandler";
import InteractableObjectComponent from "@runtime/UnityEngineBridge/InteractableObjectComponent";

/**
 * 交互对象被选中
 */
export default class InteractableObjectCheckedMessageHandler extends MessageHandler<ClientMessage.InteractableObjectCheckedMessage> {
    protected async RunAsync(message: ClientMessage.InteractableObjectCheckedMessage): Promise<void> {
        InteractableObjectComponent.Default.Add(message.Information);
    }
}
